# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=libliftoff
pkgver=0.4.1
pkgrel=0
pkgdesc="Lightweight KMS plane library"
url="https://gitlab.freedesktop.org/emersion/libliftoff"
license="MIT"
arch="all"
makedepends="meson libdrm-dev"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/v$pkgver/libliftoff-v$pkgver.tar.gz
	no-werror.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . build
	meson compile -C build
}

check() {
	meson test --no-rebuild -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
9289096bcb2b457de51e8cdee3b218517ebc6f2acc5c85e8d84f2e6cb7b24a84e2ba5540c03006e46e0187a784f6cf827efeed549197e235f7f1a88bbc32587c  libliftoff-v0.4.1.tar.gz
75f25b9fe79cb4d3d05abcacaccae804c3cfdf08b2e322891ce15cfd7d2a2aae6ac34186611896bdbffd19da975cc4beadc546ea5915bb07990daf26ff1c18ce  no-werror.patch
"
